/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DataConverters.DataFormatters;

import DataConverters.interfaces.dataformulaobject.intefaces.Cell;
import java.util.HashMap;
import java.util.SortedSet;
import java.util.TreeSet;

/**
 *
 * @author Nobody
 */
public abstract class AbstractDataFormatter implements IDataFormatter {

    protected SortedSet<Cell> list = new TreeSet<Cell>();
    protected HashMap<String, Object> properties;

    public AbstractDataFormatter(HashMap<String, Object> properties) {
        this.properties = properties;
    }

    public AbstractDataFormatter() {
        properties = new HashMap<String, Object>();
    }

    public AbstractDataFormatter(SortedSet<Cell> list) {
        this();
        this.list = list;

    }

    public AbstractDataFormatter(SortedSet<Cell> list, HashMap<String, Object> properties) {
        this.list = list;
        this.properties = properties;
    }

    @Override
    public void setSortedSet(SortedSet<Cell> list) {
        this.list = list;
    }

    @Override
    public HashMap<String, Object> getProperties() {
        return properties;
    }

    @Override
    public SortedSet<Cell> getSet() {
        return list;
    }

    @Override
    public void setProperties(HashMap<String, Object> properties) {
        this.properties = properties;
    }
}
